Optimal. Leaf size=108 \[ \frac {32 c^3 \tan (e+f x)}{3 a f \sqrt {c-c \sec (e+f x)}}+\frac {8 c^2 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{3 a f}+\frac {2 c \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{f (a \sec (e+f x)+a)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {3954, 3793, 3792} \[ \frac {32 c^3 \tan (e+f x)}{3 a f \sqrt {c-c \sec (e+f x)}}+\frac {8 c^2 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{3 a f}+\frac {2 c \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{f (a \sec (e+f x)+a)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3792
Rule 3793
Rule 3954
Rubi steps
\begin {align*} \int \frac {\sec (e+f x) (c-c \sec (e+f x))^{5/2}}{a+a \sec (e+f x)} \, dx &=\frac {2 c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{f (a+a \sec (e+f x))}-\frac {(4 c) \int \sec (e+f x) (c-c \sec (e+f x))^{3/2} \, dx}{a}\\ &=\frac {8 c^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{3 a f}+\frac {2 c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{f (a+a \sec (e+f x))}-\frac {\left (16 c^2\right ) \int \sec (e+f x) \sqrt {c-c \sec (e+f x)} \, dx}{3 a}\\ &=\frac {32 c^3 \tan (e+f x)}{3 a f \sqrt {c-c \sec (e+f x)}}+\frac {8 c^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{3 a f}+\frac {2 c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{f (a+a \sec (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.44, size = 74, normalized size = 0.69 \[ -\frac {c^2 (20 \cos (e+f x)+23 \cos (2 (e+f x))+21) \cot \left (\frac {1}{2} (e+f x)\right ) \sec (e+f x) \sqrt {c-c \sec (e+f x)}}{3 a f (\cos (e+f x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 77, normalized size = 0.71 \[ -\frac {2 \, {\left (23 \, c^{2} \cos \left (f x + e\right )^{2} + 10 \, c^{2} \cos \left (f x + e\right ) - c^{2}\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{3 \, a f \cos \left (f x + e\right ) \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.51, size = 87, normalized size = 0.81 \[ -\frac {4 \, \sqrt {2} c^{2} {\left (\frac {3 \, \sqrt {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c}}{a} - \frac {6 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c + c^{2}}{{\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {3}{2}} a}\right )}}{3 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.89, size = 73, normalized size = 0.68 \[ -\frac {2 \left (23 \left (\cos ^{2}\left (f x +e \right )\right )+10 \cos \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {5}{2}}}{3 a f \sin \left (f x +e \right ) \left (-1+\cos \left (f x +e \right )\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.64, size = 137, normalized size = 1.27 \[ -\frac {4 \, {\left (8 \, \sqrt {2} c^{\frac {5}{2}} - \frac {20 \, \sqrt {2} c^{\frac {5}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {15 \, \sqrt {2} c^{\frac {5}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac {3 \, \sqrt {2} c^{\frac {5}{2}} \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}}\right )}}{3 \, a f {\left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right )}^{\frac {5}{2}} {\left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )}^{\frac {5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.23, size = 125, normalized size = 1.16 \[ \frac {2\,c^2\,\sqrt {\frac {c\,\left (\cos \left (e+f\,x\right )-1\right )}{\cos \left (e+f\,x\right )}}\,\left (2\,\sin \left (e+f\,x\right )-44\,\sin \left (2\,e+2\,f\,x\right )+25\,\sin \left (3\,e+3\,f\,x\right )-26\,\sin \left (4\,e+4\,f\,x\right )+23\,\sin \left (5\,e+5\,f\,x\right )\right )}{3\,a\,f\,\left (\cos \left (3\,e+3\,f\,x\right )-2\,\cos \left (e+f\,x\right )-2\,\cos \left (4\,e+4\,f\,x\right )+\cos \left (5\,e+5\,f\,x\right )+2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec {\left (e + f x \right )}}{\sec {\left (e + f x \right )} + 1}\, dx + \int \left (- \frac {2 c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{2}{\left (e + f x \right )}}{\sec {\left (e + f x \right )} + 1}\right )\, dx + \int \frac {c^{2} \sqrt {- c \sec {\left (e + f x \right )} + c} \sec ^{3}{\left (e + f x \right )}}{\sec {\left (e + f x \right )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________